package com.lgw.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lgw.demo.dao.UserMapper;
import com.lgw.demo.pojo.User;

import java.util.List;
@Service
public class UserServiceImpl implements UserServcie{
    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> getAllUser(){
        return userMapper.getAllUser();
    }

    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }




}
